<html>
<head>
	<title>ISA-ONEGATE</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?php
// Cac thong so ket noi CSDL
include "db_const.php";

// Dat che do khong cho phep them ky tu / truoc ki tu ' va "
stripslashes("");

// Bien luu ma cua application
$_ISA_APP_CODE = "ISA-ONEGATE";

$_ISA_APP_NAME = "Dịch vụ hành chính công một cửa.";

// Chua ma cua don vi su dung phan mem. Ma nay lay trong bang danh muc don vi 
$_ISA_OWNER_CODE = "10";

// Chua ten cua don vi su dung phan mem
#$_ISA_OWNER_NAME = "UBND QU&#7852;N NG&#212; QUY&#7872;N";
$_ISA_OWNER_NAME = "UBND TP VŨNG TÀU - TỈNH BÀ RỊA VŨNG TÀU"; # utf-8 LITERAL
//Dat bien de dieu khien tren mau giay bien nhan...., Trong truong hop muon be thong tin thi chi viec cho them the <br>
$_ISA_UNIT_NAME = "H&#272;ND & UBND TP V&#360;NG T&Agrave;U ";

// Chua ten cua don vi su dung phan mem su dung trong bao cao VI DU : NGO QUYEN, Ngay .... thang...nam
#$_ISA_OWNER_REPORT_NAME = "NG&#212; QUY&#7872;N ";
$_ISA_OWNER_REPORT_NAME = "Vũng Tàu";
$_ISA_OWNER_REPORT_NAME1 = "TP VŨNG TÀU - TỈNH BÀ RỊA VŨNG TÀU ";

// Chua cap cua don vi su dung phan mem: 1-Van phong Chinh phu; 2-Van phong UBND tinh/TP;3-So, ban, nganh;4-UBND quan/huyen
$_ISA_OWNER_LEVEL = 4;

// Chua ma cua don vi cap tren
$_ISA_PARENT_OWNER_CODE = "3";

// Chua ten cua don vi su dung phan mem
$_ISA_PARENT_OWNER_NAME = "";


//tuanpd sua ngay 23/05/2008
$_ISA_WEB_SITE_PATH = "/eapc-onegate-vungtau/";
//$_ISA_WEB_SITE_PATH = "/";
// Chua duong dan den front-end cua ung dung
//$_ISA_FRONT_END_URL_PATH = "/vungtau-isa-onegate/front-end/";
$_ISA_FRONT_END_URL_PATH = "/front-end/";

// Chua duong dan (chi tinh het HOSTNAME) cua ISA-USER
$_ISA_USER_WEB_SITE_PATH = _get_current_http_and_host()."/eapc-user-vungtau/";

//Duong dan den ISA-CAM, quan ly cong dan
$_ISA_CAM_SITE_PATH = _get_current_http_and_host()."/";

// Chua ten cua don vi su dung phan mem
$_ISA_PARENT_OWNER_NAME = "UBND TP VŨNG TÀU - TỈNH BÀ RỊA VŨNG TÀU";


// Co cho phep tu dong cap nhat danh muc cong viec
$_ISA_AUTOMATIC_UPDATE_WORK_LIST = 1;

//****************************************************************************************************************************//
//Xac dinh ky bao cao hien thoi va luu vao bien sesion
@session_start();
_init_session_var('onegate_current_recordtype','hdn_recordtype_filter',"");
//********************************************************************************
//Ten ham		:_get_current_http_and_host()
//Chuc nang	: tra lai gia tri "http://hostname" tu dia chi URL hien tai
//********************************************************************************/
function _get_current_http_and_host(){
	global $_ISA_WEB_SITE_PATH;
	global $_SERVER;
	$v_current_http_host = 'http://'.$_SERVER['HTTP_HOST'];
	return $v_current_http_host;
}	
// Khoi tao 1 bien session va gan gia tri tu 1 bien REQUEST
function _init_session_var($p_session_var_name, $p_request_var_name, $p_default_value){
	if (isset($_SESSION[$p_session_var_name])){
		if (isset($_REQUEST[$p_request_var_name]) And $_REQUEST[$p_request_var_name]!=""){
			if ($_SESSION[$p_session_var_name] != $_REQUEST[$p_request_var_name]){
				$_SESSION[$p_session_var_name] = $_REQUEST[$p_request_var_name];
			}	
		}
	}else{
		if (isset($_REQUEST[$p_request_var_name])){
			$_SESSION[$p_session_var_name] = $_REQUEST[$p_request_var_name];
		}else{
			$_SESSION[$p_session_var_name] = $p_default_value;
		}	
	}
}
?>